#ifndef __SOCKETENGINE_H__
#define __SOCKETENGINE_H__

const int nMsgLength = 255;
#define DEFAULTPORT 4000

#include <winsock2.h>
#include <windows.h>
#pragma comment(lib, "wsock32.lib")

class SocketEngine
{
public:
	SocketEngine(void);
	~SocketEngine(void);
public:
	int SeverSession();
	int ClientSession();
    virtual int GetMsg() = 0;
private:
    int Initlialize();
    int ReleaseSocket();
    static int WaitMessageThread();
private:
    char m_strMsg[nMsgLength];
    bool m_bIsConnected;
    SOCKET m_socket;
};
#endif // __SOCKETENGINE_H__